<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/9/17
  Time: 17:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="Text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String[] phone = request.getParameterValues("phone");
    out.println("你输入的电话号码有：");
    // 先判断phone是否为null
    if (phone != null) {
        for (String p : phone) {
            out.println(p);
        }
    } else {
        out.println("没有输入电话号码");
    }
%>

</body>
</html>
